package com.lkhd.manage.pojo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "`areas`")
public class Areas implements Serializable{
    @Id
    @Column(name = "`areasId`")
    private Long areasid;

    @Column(name = "`name`")
    private String name;

    /**
     * 0 省 1市 2 区
     */
    @Column(name = "`type`")
    private Integer type;

    /**
     * 父节点
     */
    @Column(name = "`parentId`")
    private Long parentid;

    /**
     * 是否支持该城市举办活动
            
     */
    @Column(name = "`isSupport`")
    private Integer issupport;

    @Column(name = "`createDate`",insertable=false)
    private Date createdate;

    @Column(name = "`updataDate`",updatable=false)
    private Date updatadate;

    /**
     * @return areasId
     */
    public Long getAreasid() {
        return areasid;
    }

    /**
     * @param areasid
     */
    public void setAreasid(Long areasid) {
        this.areasid = areasid;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取0 省 1市 2 区
     *
     * @return type - 0 省 1市 2 区
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置0 省 1市 2 区
     *
     * @param type 0 省 1市 2 区
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 获取父节点
     *
     * @return parentId - 父节点
     */
    public Long getParentid() {
        return parentid;
    }

    /**
     * 设置父节点
     *
     * @param parentid 父节点
     */
    public void setParentid(Long parentid) {
        this.parentid = parentid;
    }

    /**
     * 获取是否支持该城市举办活动
            
     *
     * @return isSupport - 是否支持该城市举办活动
            
     */
    public Integer getIssupport() {
        return issupport;
    }

    /**
     * 设置是否支持该城市举办活动
            
     *
     * @param issupport 是否支持该城市举办活动
            
     */
    public void setIssupport(Integer issupport) {
        this.issupport = issupport;
    }

    /**
     * @return createDate
     */
    public Date getCreatedate() {
        return createdate;
    }

    /**
     * @param createdate
     */
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    /**
     * @return updataDate
     */
    public Date getUpdatadate() {
        return updatadate;
    }

    /**
     * @param updatadate
     */
    public void setUpdatadate(Date updatadate) {
        this.updatadate = updatadate;
    }
}